<?php

function response_json ($data = "", $http_code=200, $error_code = 0, $errer_info = "")
{
    return response()->json([
        'error_code' => $error_code,
        'error_info' => $errer_info,
        'http_code' => $http_code,
        'data' => $data,
    ]);
}
